﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediPlatform.Domain.Order
{
    /// <summary>
    /// 物流追踪表 (可选，用于详细物流轨迹)
    /// </summary>
    public class MedicalOrderLogisticsTracking
    {
        /// <summary>
        /// 主键，自增
        /// </summary>
        [Key]
        public long? Id { get; set; }

        /// <summary>
        /// 外键，关联 MedicalOrder.Id
        /// </summary>
        public long? OrderId { get; set; }

        /// <summary>
        /// 物流单号
        /// </summary>
        [StringLength(50)]
        public string? TrackingNumber { get; set; }

        /// <summary>
        /// 物流公司名称
        /// </summary>
        [StringLength(50)]
        public string? LogisticsCompany { get; set; }

        /// <summary>
        /// 当前位置（如：北京市朝阳区石佛营路5号）
        /// </summary>
        public string? Location { get; set; }

        /// <summary>
        /// 物流状态：0-待发货, 1-已发货, 2-运输中, 3-已签收
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 扩展信息，如物流公司提供的额外物流轨迹
        /// </summary>
        public string? ExtraInfo { get; set; }
    }
}
